package com.ff.xyh.feign.client.dictionary;

import com.ff.xyh.common.entity.dictionary.ComplaintStatus;
import com.ff.xyh.common.entity.dictionary.ComplaintType;
import com.ff.xyh.common.entity.result.ResultMessage;
import com.ff.xyh.common.entity.result.ResultObject;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Auther FF
 * @Date 2023年 05月 25日
 * @Time 01:47
 */

@FeignClient(value = "consumer-dictionary", contextId = "ComplaintTypeClient")
@RequestMapping("/dictionary")
public interface ComplaintTypeClient {

    @ApiOperation(value = "获取所有举报类型信息")
    @GetMapping("get-complaint-type-all")
    ResultObject getAllComplaintType() ;

    @ApiOperation(value = "根据id获取举报类型信息")
    @GetMapping("get-complaint-type-id")
    ResultObject getComplaintTypeById(
            @RequestParam(name = "id", required = false) Integer id) ;

    @ApiOperation(value = "根据id删除举报类型信息")
    @GetMapping("delete-complaint-type-id")
    ResultObject deleteComplaintTypeById (
            @RequestParam(name = "id", required = false) Integer id) ;

    @ApiOperation(value = "添加举报类型信息")
    @PostMapping("insert-complaint-type")
    ResultObject insertComplaintType (
            @RequestBody ComplaintType complaintType) ;

    @ApiOperation(value = "修改审核状态信息")
    @PostMapping("update-complaint-type")
    ResultObject updateComplaintType(
            @RequestBody ComplaintType complaintType) ;


}
